// 广告管理/广告列表
import request from "@/utils/requset";

// 获取列表数据
export const getNoticeListAPI = ()=>request.get("Advert/advList")

// 修改回显数据
export const getBackAPI = (id)=>request.post("Advert/editAdv/?id="+id)

// 添加数据
export const addListAPI = (value)=>request.post("Advert/addAdv/",value)

// 编辑列表
export const updateListAPI = (id,value)=>request.post(`Advert/editAdvTo?id=${id}/`,value)

// 删除列表
export const delListAPI = (id)=>request.post(`Advert/deleteAdv?id=${id}`)

// 设置是否禁用
export const setStatusAPI = (id,status)=>request.post(`Advert/startAdv?id=${id}/`,{status:status})